package com.handl.springcloud.controller;

import com.handl.springcloud.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by handl on 2017/10/29.
 */
@RestController
public class TestRibbonController {

    @Autowired
    private TestService testService;

    @RequestMapping("ribbonTest")
    public String getRibbonTest(){
        return testService.getRibbon()+",Ribbon Server";
    }

    @RequestMapping("toFeign")
    public String zipkinServer(){
        return testService.zipkinServer();
    }
}
